package com.jeecg.teacher.service;
import com.jeecg.student.entity.GStudentEntity;
import com.jeecg.teacher.entity.GTeacherEntity;
import org.jeecgframework.core.common.service.CommonService;

import java.io.Serializable;

public interface GTeacherServiceI extends CommonService{
	
 	public void delete(GTeacherEntity entity) throws Exception;
 	
 	public Serializable save(GTeacherEntity entity) throws Exception;
 	
 	public void saveOrUpdate(GTeacherEntity entity) throws Exception;
 	
 	/**
     * 检查教师是否存在
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GTeacherEntity check(String nmae, String password) throws Exception;
    
    /**
     * 通过姓名和密码查询教师
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GTeacherEntity getTeacher(String nmae, String password) throws Exception;
    /**
     * 通过id查询教师
     * @param nmae
     * @param password
     * @return
     * @throws Exception
     */
    public GTeacherEntity getTeacher(String id) throws Exception;
    
    public GTeacherEntity getTeacherByCode(String code) throws Exception;
}
